//
//  NSString+Extent.h
//  SelfDrivingTravelling-IOS
//
//  Created by Teplot_01 on 16/7/21.
//  Copyright © 2016年 Teplot_01. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Extent)

+ (NSString *)errorStringWithCode:(NSString *)errorCode;


/**
 *  截取小括号内的字符串
 *
 *  @return 小括号内的字符串
 */
- (NSString *)handleStringGetAmongInSmallBrace;

/**
 *  截取中括号内的字符串
 *
 *  @return 中括号内的字符串
 */
- (NSString *)handleStringGetAmongInMidBrace;

/**
 *  截取大括号内的字符串
 *
 *  @return 大括号内的字符串
 */
- (NSString *)handleStringGetAmongInBigBrace;

/**
 *  截取两个字符串之间的字符串
 *
 *  @param startString 开头的字符串
 *  @param endString   结尾的字符串
 *
 *  @return 中间的字符串
 */
- (NSString *)handleStringFromeStartString:(NSString *)startString toEndString:(NSString *)endString;


+ (NSString*)dictionaryToJson:(id)dic;

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;


@end
